package com.xh.bussiness.tiku.service;

import com.xh.bussiness.tiku.bean.request.SaveQuestionTypeRelationRequest;
import com.xh.bussiness.tiku.model.QuestionTypeRelation;
import com.xh.core.bean.XhPage;
import com.xh.core.service.IBaseService;

import java.util.List;
import java.util.Map;

/*
 * @Author daiwei
 * @Description
 * @Date 2019/3/18 13:42
 **/
public interface IQuestionTypeRelationService extends IBaseService<QuestionTypeRelation> {

    List<QuestionTypeRelation> queryBySubject(String subject);

    QuestionTypeRelation queryByJyQuesTypeName(String subject, String jyQuestionTypeName);

    QuestionTypeRelation queryByJyQuestionType(String subject, Integer jyQuestionType);


    Integer queryToolQuestionTypeByJyType(String subject,Integer jyQuestionType);

    List<QuestionTypeRelation> queryBaticTypeBySubject(String subject);

    void reflash();

    void batchSaveQuestionTypeRelation(SaveQuestionTypeRelationRequest request);

    XhPage<QuestionTypeRelation> queryPage(XhPage page, String subjectCode, String jyQuestionTypeName);

    void batchChangeStatus(String[] ids, Integer status);

    List<Map<String, Object>> queryRelationMapBySubject(String subjectId);
}
